package com.itheima.prize.commons.db.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.prize.commons.db.entity.CardGame;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.prize.commons.utils.ApiResult;

/**
* @author shawn
* @description 针对表【card_game】的数据库操作Service
* @createDate 2023-12-26 11:58:48
*/
public interface CardGameService extends IService<CardGame> {

    /**
     * 根据活动状态获取活动信息
     *
     */
    ApiResult<Page<CardGame>> getGameListByStatus(int status, int currPage, int limit);

    /**
     * 根据活动id查询活动信息
     */
    CardGame getGameInfoById(int gameId);

    /**
     * 缓存活动相关信息
     */
    void cacheGameInfo(int gameId);
}
